Take colors for region face (selected text) from the Gtk+ theme.
authorJan D <jan.h.d@swipnet.se>
Wed, 11 Aug 2010 18:28:10 +0000 (20:28 +0200)
committerJan D <jan.h.d@swipnet.se>
Wed, 11 Aug 2010 18:28:10 +0000 (20:28 +0200)
commit76a17dc1e465116663af5e780e58623722dd0bec
treeb3a588f4a064fcdad6bcf4cbc96758d605466455
parent2aff91004a6f13d620a565d2d24a4b4e4fdb884d
Take colors for region face (selected text) from the Gtk+ theme.

* lisp/dynamic-setting.el (dynamic-setting-handle-config-changed-event):
Handle theme-name change.

* lisp/faces.el (region): Add type gtk that uses gtk colors.

* src/gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
(xg_create_frame_widgets): Connect theme name changes to
style_changed_cb.

* src/gtkutil.h (xg_check_special_colors): Declare.

* src/xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
first.
etc/NEWS
lisp/ChangeLog
lisp/dynamic-setting.el
lisp/faces.el
src/ChangeLog
src/gtkutil.c
src/gtkutil.h
src/xfns.c